<meta charset=UTF-8 />
<!-- #set(PaginatedList<ProductUsedInfo> productUsedInfos) -->
<!--
		#set(
		pagerPUI = productUsedInfos.pager,
		puitotalResults = pagerPUI.getCountOfTotalResults(),
		puitotalPages = pagerPUI.getCountOfTotalPages() * 1,
		puipageSize = pagerPUI.pageSize,
		puipageNo = pagerPUI.pageNo,
		puiprePageNo = pagerPUI.getPrevPageNo(),
		puinextPageNo = pagerPUI.getNextPageNo()
		)
-->
<!--#if(productUsedInfos)-->
<table class="table
 table-bordered table-hover table-condensed tb"
	style="text-align: center;">
	<tr>
		<td class="tb-small-chose" ><input type="checkbox" id="proremaining_chkall" /></td>
		<td class="tb-small-chose">编号</td>
		<td>名称</td>
		<td class="tb-time">类型</td>
		<td class="tb-time">剩余次数</td>
		<td class="tb-long-time">开始时间</td>
		<td class="tb-long-time">截止时间</td>
	<tr>
		<!--#for(ProductUsedInfo info : productUsedInfos)-->
			<tr data="${info.cpsybh}">
				<td><input type="checkbox" name="proremaining_item" /></td>
				<td>${info.cpbh}</td>
				<td>${info.cpmc}</td>
				<td>
					<!-- #set(proType = info.cplx) -->
					<!-- #if(proType=='101') -->
						次卡
					<!-- #else(proType=='102') -->
						时间卡
					<!-- #else(proType=='103') -->
						年卡
					<!-- #else(proType=='104') -->
						季卡
					<!-- #else(proType=='105') -->
						月卡
					<!-- #else(proType=='106') -->
						半月卡
					<!-- #else(proType=='107') -->
						金额消费卡
					<!-- #else(proType=='108') -->
						实时扣费
					<!-- #end -->
				</td>
				<td id="restTimes_${info.cpsybh}">
				<!-- #if(info.cplx =='101') -->
					${info.sycs}
				<!-- #else -->
					&nbsp;
				<!-- #end -->
				</td>
				<td id="kssy_${info.cpsybh}">${info.hycpyxq}</td>
				<td id="jssy_${info.cpsybh}">${info.hycpyxz}</td> 
			</tr>
		<!--#end-->
</table>


<div class="gzce-pagering">
	<ul class="pagination">
		<li><a href="javascript:void(0)" onclick="goToPRPage(1)">首页</a></li>
		<!-- #if(puipageNo==1) -->
		<li class="disabled"><a href="javascript:void(0)">上一页</a></li>
		<!-- #else -->
		<li><a href="javascript:void(0)" onclick="goToPRPage('${puiprePageNo}')">上一页</a></li>
		<!-- #end -->
		<!-- #if(puipageNo==puitotalPages) -->
		<li class="disabled"><a href="javascript:void(0)">下一页</a></li>
		<!-- #else -->
		<li><a href="javascript:void(0)" onclick="goToPRPage('${puinextPageNo}')">下一页</a></li>
		<!-- #end -->
		<li><a href="javascript:void(0)" onclick="goToPRPage('${puitotalPages}')">尾页</a></li>
		<li><a>第<input id="txtPRPageNumber" value="${puipageNo}"
				onkeydown="this.value=this.value.replace(/\D/g,'')"
				onkeyup="changePRPage(this.value)"
				onafterpaste="this.value=this.value.replace(/\D/g,'')" type="text" />~&nbsp;共
				${puitotalPages}&nbsp;页/${puitotalResults}条
		</a></li>
	</ul>
</div>
<!-- #else -->
<div class="panel-body">
	没有符合条件的数据
</div>
<!-- #end -->

<script type="text/javascript">
	function changePRPage(value) {
		value = value * 1;
		var totalPages = '${totalPRPages}';
		if (value > totalPages) {
			value = totalPages;
		} else if (value < 1) {
			value = 1;
		}
		$("#txtPRPageNumber").val(value);
		goToPRPage(value);
	}
	function goToPRPage(pageNo) {
		$("#hidPRPageNo").val(pageNo);
		document.memberProductForm.submit();
	}
</script>